﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Headlight.Controllers.Wizard
{
    public class Path : IPath
    {
        public PathType PathType { get; set; }
        public List<Step> Steps { get; set; }
        public bool ShowResultsPopUnder { get; set; }
        public bool ShowCreditStep { get; set; }
        
        public bool IsCompleted() 
        {
            var pending = Steps.Single(s => !s.Completed);
            return (pending == null);
        }
    }
}
